package com.computergames.server.domain;

import lombok.Data;

import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.atomic.AtomicLong;

@Data
public class MatchingPlayer {
    private int userId;
    private int rating;
    private MatchingType matchingType;
    private AtomicLong waitingTime = new AtomicLong(System.currentTimeMillis());
    private Map<String, Object> matchingPlayerData = new HashMap<>();

    public MatchingPlayer(int userId, int rating, MatchingType matchingType) {
        this.userId = userId;
        this.rating = rating;
        this.matchingType = matchingType;
        matchingPlayerData.put("userId", userId);
        matchingPlayerData.put("rating", rating);
        matchingPlayerData.put("matchingType", matchingType);
    }
}
